You are here: Trading System Programming > Reference > Classes > TimeSeries > TimeSeries Methods > count

count

The count method returns the number of data values inside TimeSeries object.

Syntax

var count();

Return Value

The method returns a numeric value representing number of data values.

Example

The following example demonstrates the use of high() method.

 

function calculate(beginIndex, endIndex)

{

//get the TimeSeries object instance for the symbol to which the study is attached to

var timeSeries = Chart.getTimeSeriesData(this.getAttachedSymbol());

 

if(timeSeries != null)

{

var count = timeSeries.count();

}

}

 


Copyright © 2006-2009 ActiveTick LLC